package com.atguigu.yygh.cmn.service;


import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.yygh.common.result.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import javassist.runtime.Inner;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 组织架构表 服务类
 * </p>
 *
 * @author lijing
 * @since 2025-04-28
 */
public interface DictService extends IService<Dict> {
    IPage<Dict> selectDictList(Dict dict);

    Result deleteDict(Long id);

    Result insertDict(Dict dict);

    Result updateDict(Dict dict);

    List<Dict> queryList(Long id);

    void exportData(HttpServletResponse response);

    void importData(MultipartFile file);

    String getDictName(String value, String dictCode);

    List<Dict> findByDictCode(String dictCode);



    List<Dict> findChildData(Long id);

    String getDictNameByValue(String value);
}
